package com.handong.handserialprogram.model.status;

/**
 * Created by userKey on 2017/4/12.
 */

public class EmergencyResponse {

    private int responseCode = 0;
    private String responseInfo = "";

    public EmergencyResponse(int responseCode, String responseInfo) {
        this.responseCode = responseCode;
        this.responseInfo = responseInfo;
    }

    public boolean isSuccess() {
        return 200 == responseCode;
    }

    @Override
    public String toString() {
        return "[ responseInfo:" + responseInfo + ", responseCode:" + responseCode + "]";
    }
}
